package com.spddr.pmos.cxf;

import java.util.List;

import javax.ws.rs.GET;
import javax.ws.rs.Path;
import javax.ws.rs.PathParam;

import com.spddr.pmos.jpa.Organization;

import cn.seqdata.cxf.repos.JaxrsObjectRepository;

@Path("/organization")
public interface JaxrsOrganazation extends JaxrsObjectRepository<Organization> {
//	@PUT
//	@Path("/")
//	default <S extends TradeWay> S save(S entity) {
//		System.out.println();
//		return getRepository().save(entity);
//	}
	
	@GET
	@Path("/{id}/children")
	List<Organization> children(@PathParam("id") long id);
}
